{include file="public/common" /}

<div style="width:500px;margin:0 auto;margin-top: 60px;">
    <form class="layui-form">
        <input type="hidden" name="id" value="{$cash_.id}">
        <div class="layui-form-item">

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">用户信息</label>
                <div class="layui-input-block">
                    <input disabled class="layui-input" value="名称：{$user_.user_name} 电话：{$user_.telephone}">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">账户信息</label>

                <div class="layui-input-block">
                    <input disabled class="layui-input"
                           value="姓名：{$alipay_account.real_name}  账号：{$alipay_account.payee_account}">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">余额</label>
                <div class="layui-input-block">
                    <input disabled class="layui-input" value="{$fund_.value}">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">审核状态</label>
                    <div class="layui-input-block">
                        <select name="status" lay-filter="examine_cash">
                            <option value="1" style="font-size:15px;" {if condition="$cash_.status==1"}selected{/if}>审核通过</option>
                            <option value="2" style="font-size:15px;" {if condition="$cash_.status==2"}selected {/if}>未通过</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">提现金额</label>
                <div class="layui-input-block">
                    <input lay-verify="title" autocomplete="off" class="layui-input" type="text"
                           readonly value="{$cash_.value}">
                </div>
            </div>


            <table class="layui-table" lay-even="" lay-skin="row" style="width:370px;margin-left: 125px;">
                <thead>
                <tr>
                    <th>申请内容</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{$cash_.apply_memo}</td>
                </tr>
                </tbody>
            </table>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea name="memo" placeholder="请输入内容" class="layui-textarea"
                              style="resize:none;">{$cash_.memo}</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="submit_">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </div>
    </form>
</div>
<script>
    $(function () {
        layui.use(['form', 'layedit', 'laydate'], function () {
            var form = layui.form()
                    , layer = layui.layer
                    , layedit = layui.layedit
                    , laydate = layui.laydate;
            /* 提交表单 */
            form.on('submit(submit_)', function (data) {
                $.ajax({
                    url: "{:addon_url('admin://finance/examine_cash')}",
                    dataType: "json",
                    async: true,
                    data: data.field,
                    type: "POST",
                    success: function (res)
                    {
                        if (res.code == 0)
                        {
                            layer.msg(res.msg, {
                                icon: 1,
                                time: 2000
                            }, function(){
                            });
                        }
                        else
                        {
                            layer.alert(res.msg, {icon: 5});
                        }
                    }
                });
                return false;
            });
        });
    });
</script>

